const align = 'center'
export const crudOptions = vm => {
  return {
    options: { height: '100%' },
    columns: [
      {
        title: '入库号',
        key: 'ReInNum',
        align,
        search: {
          disabled: false
        }
      },
      {
        title: '经办人',
        key: 'principal',
        align
      },
      {
        title: '入库时间',
        key: 'inDate',
        align
      }
    ],
    rowHandle: {
      align,
      view: false,
      edit: false,
      custom: [
        {
          width: 350,
          thin: false,
          text: '查看详情',
          // type: 'primary',
          icon: 'el-icon-view',
          size: 'small',
          show: true,
          disabled: false,
          order: 0,
          emit: 'view'
        }
      ]
    }
  }
}
